import React from "react";
import ReactDOM from "react-dom/client";
import "@/assets/style/common.less";
import router from "./router/index";
import { Provider } from "react-redux";
import store from "./store";
import Toast from "./components/Toast";

const div = document.getElementById("root")!; //!表示一定存在此div
const root = ReactDOM.createRoot(div);
root.render(
  <Provider store={store}>
    {router}
    <Toast />
  </Provider>
);
